<?php
class A{
	protected $a=1;
	function x(){echo $this->a++;}
}

$a=new A();
$b=$a;
$c= new A();
$b->x();
$a->x();
$c->x();
$b=$c;
$b->x();
$a->x();

// Rpta-> C:12123
?>